<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en-US">
<HEAD>
<TITLE>MathJax Test Page</TITLE>
<!-- Copyright (c) 2009 Design Science, Inc. -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" />
<META HTTP-EQUIV="X-UA-Compatible" CONTENT="IE=EmulateIE7" >

<SCRIPT SRC="../MathJax.js">
//
//  Do NOT use this page as a template for your own pages.  It includes 
//  code that is needed for testing your site's installation of MathJax,
//  and that should not be used in normal web pages.  Use sample.html as
//  the example for how to call MathJax in your own pages.
//
  MathJax.HTML.Cookie.Set("menu",{});
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
    "HTML-CSS": {
      availableFonts:[], preferredFont: null, webFont: null,
      styles: {".MathJax_Preview": {visibility: "hidden"}}
    } 
  });

(function (HUB) {
  
  var MINVERSION = {
    Firefox: 3.0,
    Opera: 9.52,
    MSIE: 6.0,
    Chrome: 0.3,
    Safari: 2.0,
    Konqueror: 4.0,
    Unknown: 10000.0 // always disable unknown browsers
  };
  
  if (!HUB.Browser.versionAtLeast(MINVERSION[HUB.Browser]||0.0)) {
    HUB.config.jax = [];          // don't load any Jax
    HUB.config.extensions = [];   // don't load any extensions
    alert("The browser you are using does not support MathJax, so we can't test if if is working.  Please try a different browser.");
  }

  if (HUB.Browser.isMSIE && !HUB.Browser.versionAtLeast("7.0")) {
    alert("Internet Explorer 6 does not display images with alpha-channel transparency very\n" +
          "well, so this test will not look good.  But in practice, IE6 will use web-based\n" +
          "fonts rather than image fonts (unless the page forces images, as this one does)\n" +
          "so the poor quality rendering on this test page does not indicate a problem\n" +
          "with MathJax.");
  }
  
})(MathJax.Hub);

</SCRIPT>
</HEAD>
<BODY>

<NOSCRIPT>
<DIV STYLE="color:#CC0000; text-align:center">
<B>Warning: <A HREF="http://www.mathjax.org/">MathJax</A>
requires JavaScript to process the mathematics on this page.<BR>
If your browser supports JavaScript, be sure it is enabled.<B>
</DIV>
<HR>
</NOSCRIPT>

<BLOCKQUOTE>

<H1>MathJax Test Page</H1>

If you see typeset mathematics below, then MathJax is working.  If you see
TeX code instead, MathJax is not working for you.
<p>
<!------------------------------------------------------------------------>
<HR>


\[
\frac{-b\pm\sqrt{b^2-4ac}}{2a}
\]
<p>

<DIV STYLE="color:green">
<DIV STYLE="text-align:center; color:red; font-size:120%" CLASS="MathJax_Preview">
MathJax is not working!
</DIV><SCRIPT TYPE="math/tex; mode=display">
\bf MathJax\ Image\ Fonts\ Appear\ to\ be\ Working!
</SCRIPT>
</DIV>

<!------------------------------------------------------------------------>
<HR>
<p>

If the mathematics does not show up properly, you may not have not
installed the MathJax web fonts correctly.  Follow the steps in the 
<A HREF="../docs/html/installation.html">installation instructions</A>.
<p>

If you obtained MathJax via an archive (<code>.zip</code>) file, the fonts are included 
and should not need any special installation.  If you obtained MathJax via 
svn, the distribution includes a <code>fonts.zip</code> file that you will 
need to unpack before the image fonts will work.  Once unpacked, you 
should have a directory with the following hierarchy:
<PRE>
    mathjax/
      ...
      fonts/
        HTML-CSS/
          TeX/
            eot/
              ...
            imagedata.js
            png/
              ...
            otf/
              ...
            svg/
              ...
      fonts.zip
      ...
</PRE>

</BLOCKQUOTE>

</BODY>
</HTML>
